home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10927 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  612 b 

  1. Path: news.eunet.ch!usenet
  2. From: rop@dial.eunet.ch
  3. Newsgroups: comp.lang.c++,rb.technical
  4. Subject: Re: Can copy constructor and operator= share code?
  5. Date: 11 Mar 1996 20:04:02 GMT
  6. Organization: EUnet AG
  7. Message-ID: <4i20vi$t6h@news.eunet.ch>
  8. References: <4h2kcn$40d@rap.SanDiegoCA.ATTGIS.COM> <VA.00000053.00cdab05@fred>
  9. Reply-To: rop@dial.eunet.ch
  10. NNTP-Posting-Host: rop.dial.eunet.ch
  11. X-Newsreader: IBM NewsReader/2 v1.2.5
  12.  
  13. What about :
  14.  
  15. T::T(const T&t)
  16. {
  17.     *this =t;
  18. }
  19.  
  20. That's what I am  always using.
  21.  
  22. ROTZETTER Patrick (rop@dial.eunet.ch)
  23. Deutsche Bank (Suisse) S.A.
  24. Voice:+41 22 7390588
  25. Fax:+41 22 7390386
  26.  
  27.